package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_LogisticsChannelMaintItemSon", catalog="Id")
public class TccLogisticsChannelMaintItemSon extends BaseEntity<TccLogisticsChannelMaintItemSon> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MethodId", nameJava="methodId", typeDataBase="bigint")
	private Long methodId;
	@YsField(nameDataBase="MaterialNameCn", nameJava="materialNameCn", typeDataBase="varchar")
	private String materialNameCn;
	@YsField(nameDataBase="MaterialNameEn", nameJava="materialNameEn", typeDataBase="varchar")
	private String materialNameEn;
	@YsField(nameDataBase="AdditionalMaterialBilling", nameJava="additionalMaterialBilling", typeDataBase="decimal")
	private BigDecimal additionalMaterialBilling;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccLogisticsChannelMaintItemSon setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMethodId() {
		return methodId;
	}
	public TccLogisticsChannelMaintItemSon setMethodId(Long methodId) {
		this.methodId = methodId;
		return this;
	}
	public String getMaterialNameCn() {
		return materialNameCn;
	}
	public TccLogisticsChannelMaintItemSon setMaterialNameCn(String materialNameCn) {
		this.materialNameCn = materialNameCn;
		return this;
	}
	public String getMaterialNameEn() {
		return materialNameEn;
	}
	public TccLogisticsChannelMaintItemSon setMaterialNameEn(String materialNameEn) {
		this.materialNameEn = materialNameEn;
		return this;
	}
	public BigDecimal getAdditionalMaterialBilling() {
		return additionalMaterialBilling;
	}
	public TccLogisticsChannelMaintItemSon setAdditionalMaterialBilling(BigDecimal additionalMaterialBilling) {
		this.additionalMaterialBilling = additionalMaterialBilling;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccLogisticsChannelMaintItemSon setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccLogisticsChannelMaintItemSon setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccLogisticsChannelMaintItemSon setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccLogisticsChannelMaintItemSon tccLogisticsChannelMaintItemSon(
		Long methodId,
		String materialNameCn,
		String materialNameEn,
		BigDecimal additionalMaterialBilling,
		Integer status
			) {
		TccLogisticsChannelMaintItemSon entity = new TccLogisticsChannelMaintItemSon();
		entity.setMethodId(methodId);
		entity.setMaterialNameCn(materialNameCn);
		entity.setMaterialNameEn(materialNameEn);
		entity.setAdditionalMaterialBilling(additionalMaterialBilling);
		entity.setStatus(status);
		return entity;
	}
}